package com.sdy.po;

import java.util.Date;

public class User {

    private Integer id;
    private String username;
    private String password;
    private String name;
    private String position;
    private String image;
    private Boolean deletflag;
    private String createtime;
    private String updatetime;
    private Integer companyId;
    private Company company;
    private Authority authority;

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public User(Integer id, String username, String password, String name, String position, String image, Boolean deletflag, String createtime, String updatetime, Integer companyId, Company company, Authority authority) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.name = name;
        this.position = position;
        this.image = image;
        this.deletflag = deletflag;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.companyId = companyId;
        this.company = company;
        this.authority = authority;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", position='" + position + '\'' +
                ", image='" + image + '\'' +
                ", deletflag=" + deletflag +
                ", createtime='" + createtime + '\'' +
                ", updatetime=" + updatetime +
                ", companyId=" + companyId +
                ", company=" + company +
                ", authority=" + authority +
                '}';
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Authority getAuthority() {
        return authority;
    }

    public void setAuthority(Authority authority) {
        this.authority = authority;
    }

    public User(String username, String password, String name, Integer companyId) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.companyId = companyId;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Boolean getDeletflag() {
        return deletflag;
    }

    public void setDeletflag(Boolean deletflag) {
        this.deletflag = deletflag;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }


    public User() {
    }
}
